<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:v="urn:schemas-microsoft-com:vml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>向地图上添加标记_NIMAP Maps API 范例文档</title>
<style type="text/css">
v\:* {
	behavior: url(#default#VML);
}
</style>
<script type="text/javascript" language="javascript"
	src="http://vapi.fundrive.com.cn/vapi/mapswhdRFDRGGOIyUrfNbtkRlJ-QVEBvdf3Gl5dotDCcWOZ5JMLG0_57PhkC90C9xKBP-dnCcuseFMXggYCaz2-DzQ0d.js"></script>
<script type="text/javascript" language="javascript">
	var map;

	function callbackOverLay(lnglatstr, cb_object) {
		marker1 = new SE_Marker(new FN_LngLat(lnglatstr));
		map.addOverLay(marker1);
		var infoWin1=marker1.openInfoWinHtml("True");
		infoWin1.setTitle("True");
		marker1.closeInfoWindow();
		map.clearOverLays();

	};
	function callbackAndZoom(lnglatstr, cb_object) {
		map.centerAndZoom(new FN_LngLat(lnglatstr), cb_object);
		map.addControl(new SE_StandMapControl());
	};

	function onLoad() {
		map = new SE_Maps("mapDiv");
		FN_Function.shiftcoordinate(11629619, 3989602, callbackAndZoom, 12);
		FN_Function.shiftcoordinate(11629619, 3989602, callbackOverLay, 0);
		//var marker2 = new SE_Marker(new SE_LngLat(11629619, 3989602));
		//map.addOverLay(marker2);
		//var infoWin2=marker2.openInfoWinHtml("Shifted");
		//infoWin2.setTitle("Shifted");
		//FN_Function.shiftcoordinate(11628619, 3989602, callbackOverLay, 1);
	}
</script>
</head>
<body onload="onLoad()">
	<div id="mapDiv" style="width: 1200; height: 680px; margin: 0 auto;"></div>
</body>
</html>